import base from './base'

export default class News extends base {

    /**
   * 预建讲坛直播
   */
    static async editLive(options) {
        const url = `${this.baseUrl}/adm/medical_live/edit`
        return this.post(url, options)
    }
    /**
   * 获取直播列表
   */
    static async getList(options) {
        const url = `${this.baseUrl}/adm/medical_live/list`
        return this.get(url, options)
    }

    /**
      * 设置排序
      */
    static async setOb(options) {
        const url = `${this.baseUrl}/adm/medical_live/setOb`
        return this.post(url, options)
    }

    /**
     * 获取直播详情
     */
    static async getDetails(options) {
        const url = `${this.baseUrl}/adm/medical_live/detail`
        return this.get(url, options)
    }

    /**
        * 获取直播间统计
        */
    static async getCount(options) {
        const url = `${this.baseUrl}/adm/medical_live/count`
        return this.get(url, options)
    }


    /**
      * 删除直播
      */
    static async deleteLive(options) {
        const url = `${this.baseUrl}/adm/medical_live/delete`
        return this.post(url, options)
    }

    /**
         * 中断直播
         */
    static async forbidLive(options) {
        const url = `${this.baseUrl}/adm/medical_live/forbidLive`
        return this.post(url, options)
    }


    /**
         * 恢复直播
         */
    static async resumeLive(options) {
        const url = `${this.baseUrl}/adm/medical_live/resumeLive`
        return this.post(url, options)
    }
    /**
             * 停止直播
             */
    static async stopLive(options) {
        const url = `${this.baseUrl}/adm/medical_live/stopLive`
        return this.post(url, options)
    }

    /**
              * 获取分类
              */
    static async getClassification(options) {
        const url = `${this.baseUrl}/adm/medical_live_group/list`
        return this.get(url, options)
    }

    /**
             * 编辑分类
             */
    static async editClassification(options) {
        const url = `${this.baseUrl}/adm/medical_live_group/edit`
        return this.post(url, options)
    }


    /**
                * 删除分类
                */
    static async removeClassification(options) {
        const url = `${this.baseUrl}/adm/medical_live_group/remove`
        return this.post(url, options)
    }

}


